<%@ page language="java" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>  
<title>管理员管理</title>
<link href="<%=request.getContextPath() %>/wang-css/reset.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/wang-css/header.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/wang-css/eos-system.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/base.css" media="all" />
<link rel="stylesheet" href="<%=request.getContextPath() %>/js/jquery-ui-1.10.3.custom/css/redmond/jquery-ui.css" />
<link rel="stylesheet" href="<%=request.getContextPath() %>/js/validate/css/screen.css" />
<link href="<%=request.getContextPath() %>/yuan-css/style.css" type="text/css" rel="stylesheet" />
<script src="<%=request.getContextPath() %>/js/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js"></script>
<script src="<%=request.getContextPath() %>/js/jquery-ui-1.10.3.custom/js/jquery-ui.js"></script>
<script src="<%=request.getContextPath() %>/js/validate/jquery.validate.min.js"></script>
<style type="text/css">
.error { color:red; }
</style>
  <script type="text/javascript">
   var tabs;
   $(document).ready(function(){
	   tabs =	$("#tabs").tabs({
	 		beforeLoad: function( event, ui ) { 
	 		 ui.jqXHR.error(function() {  
		          ui.panel.html("内容无法载入……请稍后再试！");  
		     }); 
	 		} 	
	 	});
	 	$(".menu-1").click(function(e){
	 		var srcpath = "<%=request.getContextPath()%>"+$(this).attr('url');
			$("#tab_a").attr({"href":srcpath});
	  		$("#tab_a span").text($(this).attr('zi'));
	  		tabs.tabs("load",0);
	 	});
	 	
		
	});
	function addTab(id,url,title,isClose){		
      var li ='<li id="'+id+'"><a href="'+url+'">'+title+'</a>';   
      if(isClose){
      	li+='<span class="ui-icon ui-icon-closethick" onclick="javascript:tabsClose(\''+id+'\');" style="cursor: hand;" ></span>';
      }
      li+="</li>";
	  tabs.find(".ui-tabs-nav").append(li);
      tabs.tabs( "refresh" );
      var active = tabs.tabs( "option", "active" );
      tabs.tabs( "option", "active",active+1);
	}
	function tabsClose(id){
		$("#"+id).remove(); 
		tabs.tabs( "refresh" );
	}
  	function navTab(num){
  		for(var i=1;i<3;i++){
  			if(i==num){
  				$("#nav"+i).css("display","block");
  			}else {
	  			$("#nav"+i).css("display","none");
  			}
  		}
  	}
  		function manageDiv(src) {
		var divplay = document.getElementById(src).style.display;
		if (divplay == "") {
			document.getElementById(src).style.display = "none";
		} else {
			document.getElementById(src).style.display = "";
		}

	}

  </script>
    </head>
  <body>
  
   <div id="header">
</div>
<div id="nav">
    <ul class="nav-list clearfix">
        <li><a href="javascript:void(0)" onclick="navTab(1)"><span>用户管理</span></a></li>
        <li><a href="javascript:void(0)" onclick="navTab(2)"><span>权限管理</span></a></li>
    </ul>
</div>

<div id="contentWarp" class="content-wrap">
	<div class="module-right">
		
    	<div id="pageRight" class="page-right" style="height:auto;">  	
            <div id="tabs" style="border-width: 0px;">
         		<ul>
				    <li><a id="tab_a" href="<%=request.getContextPath() %>/admin/manageUser.form"><span class="yuan-biaoti">用户管理</span></a></li>
				</ul>					 
           	</div>  
        </div>
    </div>
	<div id="moduleLeft" class="module-left">
    	<div id="iframeLeftWarp" class="left-inner">
    		<div class="page-left">
    			<div id="nav1">      		 		
        			 <div class="sidebar"><b></b><a href="#" url="/admin/manageUser.form" zi='用户管理' class="menu-1">用户管理</a></div>
       				 <div class="sidebar"><b></b><a href="#" url="/rule/manageRule.form" zi='角色管理' class="menu-1">角色管理</a></div>
       					  
      		    </div>
       		<div id="nav2" style="display:none">
       			 <div class="sidebar"><b></b><a href="JavaScript:pageshow('/competence/manager.form')">权限设定</a></div>
        	 	<div class="sidebar"><b></b><a href="JavaScript:pageshow('/rule/showbing.form')">角色绑定权限</a></div>
        	 	<div class="sidebar"><b></b><a href="JavaScript:pageshow('/admin/user-rule.form')">角色绑定用户</a></div>
       		 </div>
   			 </div>    	
	</div>	
    </div>
</div>
<div id="footer">Copyright Notice © 2004 - 2012 All rights reserved.</div>
 </body>
